﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using Business_Layer;

namespace Control_Layer
{
    // See UseCase:
    // UCD04-PREVIEWS (01)
    public class CCPreviewPresentation
    {
        private Service service;
        private Project project;

        public CCPreviewPresentation()
        {
            service = Service.GetInstance;
            project = service.GetProject;
        }

        /// <summary>
        /// Swap the dia at selected towards selection plus direction.
        /// </summary>
        /// <param name="selected">The currently selected dia.</param>
        /// <param name="direction">Either 1 or -1, to go up or down.</param>
        public void Swap(int selected, int direction)
        {
            project.ModifyDia(selected, direction);
        }
    }
}
